package com.sakura.oj.model.enums;

import lombok.Getter;

/**
 * 判题信息枚举
 *
 * @author Sakura
 */
@Getter
public enum JudgeInfoMessageEnum {

    ACCEPTED("Accepted", "成功"),
    WRONG_ANSWER("Wrong Answer", "答案错误"),
    COMPILE_ERROR("COMPILE ERROR", "编译错误"),
    MEMORY_LIMIT_EXCEEDED("MEMORY LIMIT EXCEEDED", "内存溢出"),
    TIME_LIMIT_EXCEEDED("TIME LIMIT EXCEEDED", "超时"),
    PRESENT_ACTION_ERROR("PRESENT ACTION ERROR", "展示错误"),
    OUTPUT_LIMIT_EXCEEDED("OUTPUT LIMIT EXCEEDED", "输出溢出"),
    WAITING("WAITING", "等待中"),
    DANGEROUS_OPERATION("DANGEROUS OPERATION", "危险操作"),
    RUNTIME_ERROR("RUNTIME ERROR", "运行错误"),
    SYSTEM_ERROR("SYSTEM ERROR", "系统错误");

    final String value;
    final String text;

    JudgeInfoMessageEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

}
